package com.dwxt.community.admin.controller;

import com.dwxt.common.base.BaseResult;
import com.dwxt.community.admin.service.TrashServiceAdmin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/cms/trash")
@RestController
public class VisbaleTrashCanControllerAdmin {

    @Autowired
    private TrashServiceAdmin trashServiceAdmin;

    /**
     * 投放时间段统计
     *
     * @return
     */
    @RequestMapping("/deliverTimeStatistics")
    public BaseResult deliverTimeStatistics() {
        return trashServiceAdmin.deliverTimeStatistics();
    }

    /**
     * 垃圾数量占比
     *
     * @return
     */
    @RequestMapping("/numberStatistics")
    public BaseResult numberStatistics() {
        return trashServiceAdmin.numberStatistics();
    }

    /**
     * 投放频次统计
     */
    @RequestMapping("/deliverRateStatistics")
    public BaseResult deliverRateStatistics() {
        return trashServiceAdmin.deliverRateStatistics();
    }

}
